import request from '@/utils/request'

// 查询版本列表
export function getAppVersionList(query) {
  return request({
    url: '/appVersion/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getAppVersion(id) {
  return request({
    url: '/appVersion/'+id ,
    method: 'get'
  })
}

// 新增版本
export function addAppVersion(data) {
  return request({
    url: '/appVersion/edit',
    method: 'post',
    data: data
  })
}

// 修改版本
export function updateAppVersion(data) {
  return request({
    url: '/appVersion/edit',
    method: 'put',
    data: data
  })
}

// 删除版本
export function delAppVersion(id) {
  return request({
    url: '/appVersion/' + id,
    method: 'delete'
  })
}
